home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / fd2pragma / scripts / makevbcc < prev   
AmigaDOS Script File  |  2000-02-28  |  1KB  |  44 lines

  1. .key FDFILE/A,CLIBFILE/A,DEST/A
  2. .bra {
  3. .ket }
  4.  
  5. ; $VER: MakeVBCC 1.0 (18.11.1999)
  6. ; script to create all the needed library stuff with FD2Pragma
  7. ; DEST must already exist and should be empty.
  8.  
  9. FailAt 21
  10.  
  11. ; ************** Copy the fd to destination directory *******************
  12. MakeDir >NIL: {DEST}fd
  13. Copy {FDFILE} {DEST}fd QUIET
  14.  
  15. ; ********************** This is the C part *****************************
  16. MakeDir >NIL: {DEST}C
  17. MakeDir >NIL: {DEST}C/clib
  18. MakeDir >NIL: {DEST}C/proto
  19.  
  20. Copy {CLIBFILE} {DEST}C/clib QUIET
  21. FD2Pragma {FDFILE} SPECIAL 37 TO {DEST}C/proto/
  22.  
  23. ; ****************** This is the Assembler part *************************
  24. MakeDir >NIL: {DEST}ASM
  25. MakeDir >NIL: {DEST}ASM/lvo
  26.  
  27. FD2Pragma {FDFILE} SPECIAL 23 TO {DEST}ASM/lvo/
  28.  
  29. ; ******** This generates a link library for C and Assembler ************
  30. MakeDir >NIL: {DEST}lib
  31. MakeDir >NIL: {DEST}lib/68k
  32. MakeDir >NIL: {DEST}lib/PPC
  33. MakeDir >NIL: {DEST}lib/WOS
  34.  
  35. FD2Pragma {FDFILE} CLIB {CLIBFILE} SPECIAL 13 TO {DEST}lib/68k
  36. FD2Pragma {FDFILE} CLIB {CLIBFILE} SPECIAL 73 TO {DEST}lib/WOS
  37. FD2Pragma {FDFILE} CLIB {CLIBFILE} SPECIAL 76 TO {DEST}lib/PPC
  38.  
  39. ; **************************** other stuff ******************************
  40.  
  41. ; nothing more needed :-)
  42.  
  43. FailAt 10
  44.